package framework.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Slf4j
@Configuration
@ConfigurationProperties(prefix = "sys.s3")
public class S3Config {

    private String accessKey;
    private String secretKey;
    private String region;
    private String bucket;
    private String endPoint;
    private Boolean pathStyle;
    //内存交换最大值（值必需大于等于 partSize)
    private Integer saveMemoryMax = 20 * 1024 * 1024;
    //分片大小 (值必需大于5M)
    private Integer partSize = 10 * 1024 * 1024;
    /**
     * 启用压缩的路径前缀
     */
    private String[] compressPathStarts;

}
